// filaname: string_utf_convert.h
// authro: enic
// date: 2015-05-13

#pragma once

#include <locale>
#include <string>
#include <codecvt>

namespace X
{

	std::string U16ToUtf8(const std::wstring strUtf16);

	std::wstring U8ToUtf16(const std::string strUtf8);

#ifdef WIN32
	std::string U16ToGbk(const std::wstring strUtf16);
#endif
};

#define XU16T8(str16) X::U16ToUtf8(str16)
#define XU8T16(str8) X::U8ToUtf16(str8)